<?php
/*
暂不可用
 */
use Swoole\Redis\Server;
use Swoole\Coroutine\Redis;

$server = new Swoole\Server('0.0.0.0',9503,SWOOLE_PROCESS,SWOOLE_SOCK_TCP);

$server->setHandler('set',function($fd,$data) use ($server){
	$redis = new Redis;
	$redis->connect('0.0.0.0',6379);
	$redis->set($data[0],$data[1]);
	$server->send($fd,Server::format(Server::INT,1));
});

$server->start();
